package com.pioneer.web.stock.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pioneer.web.stock.domain.StoInoutBody;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * StoInoutBodyMapper
 *
 * @author hlm
 * @date 2025-04-09 14:54:34
 */
@Mapper
public interface StoInoutBodyMapper extends BaseMapper<StoInoutBody> {

    /**
     * 批量新增出入库子表
     * @param inoutBodyList 出入库子表
     * @return 结果
     */
    int insertBatch(List<StoInoutBody> inoutBodyList);

    /**
     * 根据采购入库单ID集合删除子表信息
     * @param list 采购入库单ID集合
     * @return 结果
     */
    int deleteBodyById(List<Long> list);
}
